<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/include/includes.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<link rel="stylesheet" type="text/css" href="css/style.css">
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/My97DatePicker/WdatePicker.js"></script>
</head>
<body>

	
	<form action="taskview.do">
		<table style="border:1px solid #DDD;width:100%">
			<tr>
				<td style="height:40px">carid</td>
				<td>
					<select id="carid" name="carid" style="width:260px">
						<option value="">全部</option>
						<c:forEach var="device" items="${deviceList}">
							<option value="${device.carid }" title="${device.remark }" <c:if test="${carid == device.carid }" >selected</c:if> >${device.remark }&nbsp;${device.username }(${device.carid })</option>
						</c:forEach>
					</select>
				</td>
				<td>query_begin</td>
				<td><input class="textblock_date" name="beginDate" id="beginDate" type="text" onClick="WdatePicker({dateFmt:'yyyy-MM-dd',lang:'zh-cn'})" readonly="readonly" value="${beginDate }" /></td>
				<td>query_end</td>
				<td><input class="textblock_date" name="endDate" id="endDate" type="text" onClick="WdatePicker({dateFmt:'yyyy-MM-dd',lang:'zh-cn'})" readonly="readonly" value="${endDate }" /></td>
			</tr>	
			<tr>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
				<td>orderby</td>
				<td>
					<select id="orderby" name="orderby">
						<option value="QUERYTIME DESC" <c:if test="${orderby == 'QUERYTIME DESC'}">selected</c:if> >querytime desc</option>
						<option value="CREATETIME DESC" <c:if test="${orderby == 'CREATETIME DESC'}">selected</c:if> >createtime desc</option>
					</select>
				</td>
				<td><input type="submit" value="查询" /></td>
			</tr>
		</table>
	</form>
	<table class="datatable" >
		<thead>
			<tr>
				<td>carid</td>
				<td>querytime</td>
				<td>resultcount</td>
				<td>costtime</td>
				<td>createtime</td>
			</tr>
		</thead>
		<tbody>
			<c:forEach var="task" items="${taskList.records}">
			<tr>
				<td>${task.carid }</td>
				<td><fmt:formatDate value="${task.querytime}" pattern="yyyy-MM-dd"/></td>
				<td>${task.resultcount }</td>
				<td>${task.costtime }</td>
				<td><fmt:formatDate value="${task.createtime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
			</tr>
			</c:forEach>
		</tbody>
	</table>
	<njdj:pageSplit url="taskview.do" count="${taskList.totalRecords}" pageNo="${taskList.page}" pageSize="${taskList.pageSize}"/>

</body>
</html>
